//
//  SunNavigationVC.m
//  PlayerVH
//
//  Created by 彭冲 on 24/5/18.
//  Copyright © 2018年 彭冲. All rights reserved.
//

#import "SunNavigationVC.h"

@interface SunNavigationVC ()

@end

@implementation SunNavigationVC

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.、
    self.navigationBar.hidden = YES;
}

#pragma mark //重写这三个方法，返回当前展示页面的屏幕选择需求
//是否需要选择屏幕
- (BOOL)shouldAutorotate {
    return [self.visibleViewController shouldAutorotate];
}

//选择屏幕支持的方向
- (UIInterfaceOrientationMask)supportedInterfaceOrientations {
    return [self.visibleViewController supportedInterfaceOrientations];
}

//初始化设备的方向
- (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation {
    return [[self.viewControllers lastObject] preferredInterfaceOrientationForPresentation];
}

//重新子控制器状态栏状态，返回当前容器中最顶部的控制器
- (UIViewController *)childViewControllerForStatusBarStyle {
    return self.topViewController;
}

@end
